// model功能： 1.连接数据库  2.暴露接口
const { position } = require('../db/index');

const add = async(data) => {
    return position.add(data);
}

const find = () => {
    return position.find();
}

const remove = ({ id, companyLogo }) => {
    return position.remove({ id, companyLogo });
}

module.exports = {
    add,
    find,
    remove
}